package com.order.mapper;


import com.order.bean.OrderDetail;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderDetailMapper {

    OrderDetail o = new OrderDetail();

    OrderDetail queryById(Integer id);

    List<OrderDetail> queryAll(OrderDetail orderDetail);

    boolean insert(OrderDetail orderDetail);

    boolean update(OrderDetail orderDetail);

    @Delete("delete from order_detail where id = #{id}")
    boolean deleteById(Integer id);

    int batchInsert(@Param("list") List<OrderDetail> orderDetailList);
}
